/*******************************************************************************
*  file    : qloggerrollingfileappender.hpp
*  created : 01.05.2013
*  author  : 
*******************************************************************************/

#ifndef QLOGGERROLLINGFILEAPPENDER_HPP
#define QLOGGERROLLINGFILEAPPENDER_HPP

#include "qloggerconf.hpp"
#include "qloggerfileappender.hpp"

class QLOGGER_DECL QLoggerRollingFileAppender : public QLoggerFileAppender
{
    protected:
        int     _max_file_size;
    private:
        void rollFile();
    public:
        void write (const QLoggerEvent &event);
        QLoggerRollingFileAppender (int level, const QString &filename, const QString &format, int max_size = 1000000, const QString& time_format = "yyyy.MM.dd hh:mm:ss.zzz");
};

#endif // QLOGGERROLLINGFILEAPPENDER_HPP
